#ifndef VARIABLE_H
#define VARIABLE_H

#include <QString>
#include <QRegExp>
#include <QRegExpValidator>
#include <QFile>
#include <QIODevice>
#include <QTextStream>
#include <QFileDialog>
#include <QMessageBox>
QFile file;
QFile init("inf.txt");
QString userName;
QString testName;
int numberOfQuestions=3;
int count=0;
bool admin=false;
bool openTest=false;
bool finalFlag=true;
int markValue[3]={20,40,60};

struct QUESTION{
QString qText; //text question
QString answers[4]; //text
bool flagType; //true - radiobutton, false - checkbox
bool correctAnswers[4]; //list of true answers: [true false false true] etc
bool userAnswers[4]; //like CORRECT_ANSWERS
QString docs; //help text only in TEST MODE
bool result; //here is calculated result from CHECK_RESULT
};

QUESTION *question=new QUESTION[numberOfQuestions];


#endif // VARIABLE_H
